use serde::{Deserialize, Serialize};
#[derive(Debug, Deserialize,Clone)]
pub struct Config {
    pub address: Address,
    pub file: File,
    pub info: Info
}

#[derive(Debug, Deserialize, Serialize,Clone)]
pub struct Address {
    pub multicast_ip: String,
    pub broadcast_ip : String,
    pub this_network_ip: String,
    pub transfer_port : u16,
    pub listen_port : u16,
}
#[derive(Debug, Deserialize, Serialize,Clone)]
pub struct File{
    pub file_path: String,
    pub file_size_limit: u64, 
}

#[derive(Debug, Deserialize, Serialize,Clone)]
pub struct Info {
    pub device_name: String,
}